﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
using System.Configuration;

public partial class SiteWorx_ControlPanel : System.Web.UI.MasterPage
{

    protected void rpbControlPanel_Load(object sender, EventArgs e)
    {
        RadPanelItem panelItem = rpbControlPanel.FindItemByValue(Page.ToString());
        panelItem.ExpandParentItems();
        panelItem.Selected = true;

        // find blog panel and set blog url
        if (ConfigurationManager.AppSettings["BlogUrl"] != null &&
            ConfigurationManager.AppSettings["BlogUrl"].ToString().Length > 0)
        {
            panelItem = rpbControlPanel.FindItemByValue("ManageBlog");
            panelItem.NavigateUrl = ConfigurationManager.AppSettings["BlogUrl"].ToString();
        }
         
    }
}
